<template>
  <div class="layout-container">
    <el-container>
      <el-aside width="200px">
        <AsideView />
      </el-aside>
      <el-container>
        <el-header>
          <HeaderView />
        </el-header>
        <el-main>
          <RouterView />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import { RouterView } from 'vue-router'
import AsideView from '../components/aside.vue'
import HeaderView from '../components/Header.vue'
</script>

<style scoped>
.layout-container {
  height: 100vh;
}

.el-header {
  background-color: #fff;
  color: #333;
  line-height: 60px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.el-aside {
  background-color: #545c64;
}

.el-main {
  background-color: #f5f5f5;
  padding: 20px;
}
</style>